package com.lipeng.bean;

import org.springframework.web.multipart.MultipartFile;

public class Club {
    private Integer cid;

    private String cname;

    private String cintro;

    private String cpic;

    private String cplace;

    private String cactivity;

    private MultipartFile file;

    private Integer attentionCount;

    private boolean isAttention;

    public Club(){
    }


    public Club(Integer cid, String cname, String cintro, String cpic, String cplace, String cactivity, MultipartFile file, Integer attentionCount) {
        this.cid = cid;
        this.cname = cname;
        this.cintro = cintro;
        this.cpic = cpic;
        this.cplace = cplace;
        this.cactivity = cactivity;
        this.file = file;
        this.attentionCount = attentionCount;
    }

    @Override
    public String toString() {
        return "Club{" +
                "cid=" + cid +
                ", cname='" + cname + '\'' +
                ", cintro='" + cintro + '\'' +
                ", cpic='" + cpic + '\'' +
                ", cplace='" + cplace + '\'' +
                ", cactivity='" + cactivity + '\'' +
                ", file=" + file +
                ", attentionCount=" + attentionCount +
                ", isAttention=" + isAttention +
                '}';
    }

    public boolean getIsAttention() {
        return isAttention;
    }

    public void setIsAttention(boolean attention) {
        isAttention = attention;
    }

    public Integer getAttentionCount() {
        return attentionCount;
    }

    public void setAttentionCount(Integer attentionCount) {
        this.attentionCount = attentionCount;
    }

    public MultipartFile getFile() {
        return file;
    }

    public void setFile(MultipartFile file) {
        this.file = file;
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname == null ? null : cname.trim();
    }

    public String getCintro() {
        return cintro;
    }

    public void setCintro(String cintro) {
        this.cintro = cintro == null ? null : cintro.trim();
    }

    public String getCpic() {
        return cpic;
    }

    public void setCpic(String cpic) {
        this.cpic = cpic == null ? null : cpic.trim();
    }

    public String getCplace() {
        return cplace;
    }

    public void setCplace(String cplace) {
        this.cplace = cplace == null ? null : cplace.trim();
    }

    public String getCactivity() {
        return cactivity;
    }

    public void setCactivity(String cactivity) {
        this.cactivity = cactivity == null ? null : cactivity.trim();
    }
}